package cn.wolfcode.business.mapper;

import cn.wolfcode.business.domain.BusStatement;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface BusStatementMapper
{

    List<BusStatement> selectBusStatementList(BusStatement busStatement);

    BusStatement selectBusStatementById(Long id);

    int insertBusStatement(BusStatement busStatement);

    int updateBusStatement(BusStatement busStatement);

    int deleteBusStatementByIds(@Param("id") Long id,@Param("isDelete")Integer isDelete);

    void updateItem(@Param("statementId") Long statementId, @Param("totalAmount") BigDecimal totalAmount, @Param("totalQuality") BigDecimal totalQuality, @Param("disCount") BigDecimal disCount);

    int updateBusPay(@Param("statementId") Long statementId, @Param("payId") Long payId, @Param("statusPaid") Integer statusPaid);

    BusStatement selectBusAppointId(Long id);
}
